package team.lourd.network.system.own.domain;

import lombok.Getter;
import lombok.Setter;
import team.lourd.network.system.audit.DateAudit;
import team.lourd.network.system.own.domain.netel.NEBranch;
import team.lourd.network.system.own.domain.netel.NEDiagram;
import team.lourd.network.system.own.domain.netel.NEModel;
import team.lourd.network.system.own.domain.pretrem.PMModel;

import javax.persistence.*;

/**
* @Description: 操作日志
* @Author: Lourd 
* @Date: 2019/1/18 
*/
@Table(name = "record")
@Entity
@Getter
@Setter
public class Record extends DateAudit {

    @Id
    @GeneratedValue(strategy = GenerationType.IDENTITY)
    private Long id;

    private String type;

    private String action;

    private String description;

    @ManyToOne(cascade = CascadeType.ALL)
    private NEBranch neBranch;

    @ManyToOne(cascade = CascadeType.ALL)
    private NEDiagram neDiagram;

    @ManyToOne(cascade = CascadeType.ALL)
    private NEModel neModel;

    @ManyToOne(cascade = CascadeType.ALL)
    private PMModel pmModel;

}
